<template>
    <div class="share" id="share">
        <div class="share-bord-warp" @click="$emit('clickFn')">
            <div class="positionR">
                <img class="width-full" v-if="shareMsg.shareShowImg && !isOnlyUseSolt" src="../../../assets/images/commonComponents/discount_share.png" alt="">
            </div>
        </div>
        <v-bord>
            <div slot="cantClick" @click="$emit('clickFn')" class="com_black"></div>
        </v-bord>
    </div>
</template>
<!--使用方法<div slot="cantClick" @click="sureGetLocationFn" class="com_black"></div>-->
<script>
    export default {
        phone: "share",
        props:{
            sharePropsMsg:{
                shareShowImg:String
            },
            isOnlyUseSolt:{
                type:Boolean,
                default:false,
            }
        },
        data(){
            return{
                shareMsg:{
                    shareShowImg:'../../../assets/images/commonComponents/icons/share/discount_share.png'
                }
            }
        },
        mounted(){
            this.shareMsg = Object.assign(this.shareMsg,this.sharePropsMsg);
        },
        methods:{
        },
        components:{
            'v-bord':()=>import('../alert/Bord'),
        },
    }
</script>

<style scoped lang="scss">
    .share-bord-warp{
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        z-index: 1060;
    }
</style>